package com.wiscamp.ninechapters.problems.enums;

/**
 * 答题卡类型枚举
 */
public enum SheetTypes {

    NONE(0, "无"),

    GENERAL(145001, "普通");

    private final int value;

    private final String name;

    SheetTypes(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public int getValue() {
        return value;
    }

    public static SheetTypes valueOf(int value) {
        if (value == 145001) {
            return SheetTypes.GENERAL;
        }
        return null;
    }
}
